package com.glory.erp.auth.role.bean;

import java.util.Set;

import com.glory.erp.auth.emp.bean.Emp;
import com.glory.erp.auth.menu.bean.Menu;
import com.glory.erp.auth.resources.bean.Resources;

/**
 * @Description: 角色
 * @Title: Role.java
 * @Author: 樊双峰
 * @Date: 2018年5月20日 下午5:53:09
 * @Version V1.0
 */
public class Role {

	/**
	 * 角色id
	 */
	private Long uuid;
	
	/**
	 * 角色名
	 */
	private String name;
	
	/**
	 * 角色码
	 */
	private String code;

	/**
	 * 资源 多对多
	 */
	private Set<Resources> resources;
	
	/**
	 * 菜单 多对多
	 */
	private Set<Menu> menus;
	
	/**
	 * 对员工 多对多
	 */
	private Set<Emp> emps;
	
	public Role() {
	}
	
	public Role(Long uuid, String name, String code) {
		this.uuid = uuid;
		this.name = name;
		this.code = code;
	}
	
	public Role(Long uuid, String name, String code, Set<Resources> resources) {
		this.uuid = uuid;
		this.name = name;
		this.code = code;
		this.resources = resources;
	}

	public Set<Emp> getEmps() {
		return emps;
	}

	public void setEmps(Set<Emp> emps) {
		this.emps = emps;
	}

	public Set<Menu> getMenus() {
		return menus;
	}

	public void setMenus(Set<Menu> menus) {
		this.menus = menus;
	}

	public Set<Resources> getResources() {
		return resources;
	}

	public void setResources(Set<Resources> resources) {
		this.resources = resources;
	}

	public Long getUuid() {
		return uuid;
	}

	public void setUuid(Long uuid) {
		this.uuid = uuid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
}